minetest.register_chatcommand("alert", {
	params = "mensagem",
	description = "Faz uma aviso destacado para todos os players online.",
	privs = {server=true},
	func = function(name, params)
		local players = minetest.get_connected_players()
		for _, player in pairs(players) do
			if player~=nil and player:is_player() then
				minetest.sound_play("sfx_alertfire", {object=player})
				local playername = player:get_player_name()
				minetest.chat_send_player(playername, "#######################################################################################")
				minetest.chat_send_player(playername, params)
				minetest.chat_send_player(playername, "#######################################################################################")
			end
		end
		return true
	end,
})
